package com.jq.cm.admin;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class UsePing {
	public static void main(String[] args) {
		XmlBeanFactory factory = new XmlBeanFactory(new ClassPathResource("/applicationContext.xml"));
		PingService ps = (PingService)factory.getBean("pingservice");
		System.out.println(ps.ping(100L));
	}
}
